package com.groupfour.attendancemanagementsystem.service;

import com.groupfour.attendancemanagementsystem.entity.DO.ProjectGroupDO;
import com.groupfour.attendancemanagementsystem.entity.DO.ProjectGroupMembersDO;
import com.groupfour.attendancemanagementsystem.entity.DO.StudentDO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * service层
 */
public interface ProjectGroupService {
    public int addProject(ProjectGroupDO projectGroupDO);
    public int updataMember(String groupCode,String studentCode);
    public int addMember(ProjectGroupMembersDO projectGroupMembersDO, HttpServletRequest request);
    public int updateProject(ProjectGroupDO projectGroupDO);
    public int deleteProject(int groupId);
    public int deleteMember(int studentGroup);
    public List<ProjectGroupDO> selectProject(int isGraduation);
    public List<StudentDO> selectMember(String groupName,String departmentName,String majorName,String gradeName,String classesName,String studentName,String studentCode,int studentId,int teacherId,int groupId);
    public int addFraction(String groupComment,double groupSyntnesisScore,int groupId);
    public ProjectGroupDO queryProject(String groupId, HttpServletRequest request);
    public ProjectGroupDO queryByNameProject(String groupName);
    public int updateIsGroupleader(int isGroupLeader,String groupCode);
    public List<ProjectGroupDO> selectProjectAll();
}
